import { IntersectionType, OmitType, PartialType } from '@nestjs/swagger'
import { ListPaginationDto } from '@/shared/types/globalDto.dto'
import { WheelRecord } from '../entities/wheel-record.entity'

export class CreateWheelRecordDto extends OmitType(WheelRecord, [
  'wheelRecordId',
  'wheelPrize',
  'createdAt',
  'updatedAt',
]) {}

export class UpdateWheelRecordDto extends CreateWheelRecordDto {}

export class FindOneWheelRecordDto extends PartialType(OmitType(WheelRecord, ['wheelPrize'])) {}

export class ListPageWheelRecordDto extends PartialType(IntersectionType(FindOneWheelRecordDto, ListPaginationDto)) {}

export class WebListPageWheelRecordDto extends ListPaginationDto {}
